﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace App
{
    class TxtTime : DateTimePicker
    {
        private System.ComponentModel.IContainer components = null;
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            this.Format = DateTimePickerFormat.Custom;
            this.CustomFormat = "HH:mm";
            this.ShowUpDown = true;
            this.ShowCheckBox = true;
            this.Width = 100;
        }
        public TxtTime()
        {
            InitializeComponent();
        }
    }
}
